package com.atguigu.yygh.hosp.dao;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 孔德成
 * @slogan 致敬大师，致敬未来的你
 * @date 2021/9/4 6:52 上午
 * @desc
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule, String> {

    Schedule findScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findSchedulesByHoscodeAndDepcode(String hoscode, String depcode);
}
